<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <!-- import CSS -->
    <link rel="stylesheet" href="https://unpkg.com/element-ui/lib/theme-chalk/index.css">
</head>
<body>
<div id="app">
    <el-container>
        <el-header height="150">
            <div style="width: 1200px;margin: 0 auto;">
                <img src="../../boot1/src/main/resources/static/imgs/logo.png" style="width: 300px;vertical-align: middle">
                <a href="">首页</a>
                <a href="">热点咨询</a>
                <a href="">商家入驻</a>
                <a href="">社会招聘</a>
                <a href="">校园招聘</a>
                <a href="">帮助</a>
            </div>
            <div>
                <el-menu
                        :default-active="1"
                        class="el-menu-demo"
                        mode="horizontal"
                        background-color="#14b0fa"
                        text-color="#black"
                        active-text-color="#black">
                    <el-menu-item v-for="c in categoryArr" :index="c.id">{{c.name}}</el-menu-item>
                    <!--搜索框开始-->
                    <div style="float: right;margin-top: 10px">
                        <el-input placeholder="请输入搜索内容">
                            <el-button slot="append" icon="el-icon-search"></el-button>
                        </el-input>
                    </div>
                    <!--搜索框结束-->
                </el-menu>
            </div>
            <!--导航菜单结束-->
        </el-header>
        <!--MAIN-->
        <el-main>

                <el-col :span="10">
                    <el-carousel trigger="click" height="500px">
                        <el-carousel-item v-for="item in pic" >
                            <img :src="item" width="100%" height="100%">
                        </el-carousel-item>
                    </el-carousel>
                    </template>
                </el-col>


                <el-col :span="12" >
                    <el-card>
                        <div style="margin-left: 100px;width: 540px">
                            <h2>森马牛仔裤女宽松满屏裤运动风2022春季新款显瘦束腿长裤复古</h2>
                            <p>—————————————————————————————————</p>
                            <div>
                                <span style="font-size: 15px">销量:2342    </span>
                                <span style="font-size: 15px;margin-left: 10px">浏览量:20</span>

                            </div>
                            <div>
                                <span style="font-size: 25px"><d><i>￥233</i></d></span>
                                <s style="font-size: 20px;margin-left: 10px">原价:598</s></d>
                            </div>
                            <div style="margin-top: 30px">
                                <er-row >
                                    <el-col :span="6" v-for="p in productArr">
                                        <el-card>
                                            <img :src="p.url" width="100%" alt="">
                                        </el-card>
                                        <h3 style="margin-left:50px">{{p.title}}</h3>
                                    </el-col>
                                </er-row>
                            </div>
                        </div>
                    </el-card>

                </el-col>
        </el-main>

        <el-footer>
            <div style="height: 95px; background-image:url(../../boot1/src/main/resources/static/imgs/wave.png);margin-boottom:-30px;"> </div>
            <h1 style="margin-left: 400px">森马牛仔裤女宽松慢跑裤运动风2022春季新</h1>
            <div>

            </div>
        </el-footer>
    </el-container>
</div>
</body>
<!-- import Vue before Element -->
<script src="https://cdn.staticfile.org/vue/2.6.14/vue.min.js"></script>
<!-- import JavaScript -->
<script src="https://unpkg.com/element-ui/lib/index.js"></script>
<script>
    let v = new Vue({
        el: '#app',
        data: function () {
            return { //在这里面定义变量
                categoryArr: [
                    {id: 1, name: "精彩活动"},
                    {id: 2, name: "当季女装"},
                    {id: 3, name: "品牌男装"},
                    {id: 4, name: "环球美食"},
                    {id: 5, name: "医药健康"},
                    {id: 6, name: "美妆彩妆"},
                    {id: 7, name: "母婴产品"},],
                pic:["imgs/a.jpg"],
                topArr:[
                    {title:"小米手机",saleCount:998},
                    {title:"华硕电脑",saleCount:988},
                    {title:"李宁球鞋",saleCount:888},
                    {title:"液晶显示器",saleCount:784},
                    {title:"阿迪袜子",saleCount:563},
                    {title:"耐克上衣",saleCount:445}],
                productArr:[
                    {title:"扫码购买商品",url:"imgs/ewm.jpg",},
                    {title:"扫码关注公众号",url:"imgs/ewm.jpg"},
                    {title:"扫码联系我们",url:"imgs/ewm.jpg"},]
            }
        }
    })
</script>



</html>